package com.ruoyi.project.charge.controller;

import com.ruoyi.framework.web.controller.BaseController;
import com.ruoyi.framework.web.page.TableDataInfo;
import com.ruoyi.project.charge.domin.ChargeQuery;
import com.ruoyi.project.charge.mapper.RefundMapper;
import com.ruoyi.project.charge.service.RefundService;
import com.ruoyi.project.charge.vo.ChargeQueryParams;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @auther:YU JIANG
 * @date:2021/7/15
 * @time:17:27
 */
@RestController()
@RequestMapping("/system/refund")
public class RefundController extends BaseController {

    @Autowired
    private RefundService refundService;

    @GetMapping("/queryAll")
    public TableDataInfo queryAll(ChargeQueryParams chargeQueryParams){
        startPage();
        List<ChargeQuery> list = refundService.queryAll(chargeQueryParams);
        return getDataTable(list);
    }
}
